package com.yan.demo;

import com.yan.domain.Rectangle;

public class Demo4 {
    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle();
        rectangle.setChang(4);
        rectangle.setKuan(2);
        System.out.print(rectangle.getChang() + " ");
        System.out.print(rectangle.getKuan() + " ");
        System.out.print(rectangle.getArea() + " ");
        System.out.print(rectangle.getPerimeter() + " ");
        System.out.println();
        rectangle.setChang(8);
        rectangle.setKuan(4);
        System.out.print(rectangle.getChang() + " ");
        System.out.print(rectangle.getKuan() + " ");
        System.out.print(rectangle.getArea() + " ");
        System.out.print(rectangle.getPerimeter() + " ");
        System.out.println();
        System.out.println(rectangle.getInfo());
    }
}
